package com.bluesky.plum.uimodels.render.swing.components.containers;

import java.awt.GridLayout;

import javax.swing.JComponent;
import javax.swing.JPanel;

import com.bluesky.plum.uimodels.standard.UIComponent;

public class SForm extends
		com.bluesky.plum.uimodels.standard.components.containers.form.Form {

	JPanel panel;

	public SForm() {
		panel = new JPanel();

		GridLayout experimentLayout = new GridLayout(0, 2);
		panel.setLayout(experimentLayout);

	}

	@Override
	public void addChildComponent(UIComponent uic) {

		super.addChildComponent(uic);

		panel.add((JComponent) uic.getNativeComponent());
	}
	
	

	@Override
	public Object getNativeComponent() {

		return panel;
	}
}
